package baseClass;
/*
    token（词法）错误
    2022-3-9-杨海南
 */
public class ErrorToken {
    private int line;
    private int indexInLine;
    private String errorMessage;

    public ErrorToken(int line, int indexInLine, String errorMessage) {
        this.line = line;
        this.indexInLine = indexInLine;
        this.errorMessage = errorMessage;
    }

    public int getLine() {
        return line;
    }

    public int getIndexInLine() {
        return indexInLine;
    }

    public String getErrorMessage() {
        return errorMessage;
    }
}
